﻿@model Event_Planner.Models.EventosModels

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Evento</legend>

        @Html.HiddenFor(model => model.ID)

        @Html.HiddenFor(model => model.ImagenDelEvento)

        <div class="editor-label">
            @Html.LabelFor(model => model.NombreEvento)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NombreEvento)
            @Html.ValidationMessageFor(model => model.NombreEvento)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Lugar)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Lugar)
            @Html.ValidationMessageFor(model => model.Lugar)
        </div>

         @Html.HiddenFor(model => model.FechaInicio)

         <div class="editor-label">
            @Html.LabelFor(model => model.FechaFinalizacion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaFinalizacion)
            @Html.ValidationMessageFor(model => model.FechaFinalizacion)
        </div>
        <p> <input type="submit" value="Guardar" />  </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver a la lista", "Index")
</div>
